import request from '@/utils/request'

//配置列表
export function listConfig(dataRequest) {
	return request({
		url: '/admin/config/base/list',
		method: 'POST',
		data: dataRequest,
		showLoading: true
	})
}
//参数配置列表
export function listBaseConfig(dataRequest) {
	return request({
		url: '/admin/config/base/list',
		method: 'POST',
		data: dataRequest,
		showLoading: true
	})
}
//新增参数配置
export function addBaseConfig(dataRequest) {
	return request({
		url: '/admin/config/base',
		method: 'POST',
		data: dataRequest,
		showLoading: true
	})
}
//修改参数配置
export function editBaseConfig(dataRequest) {
	return request({
		url: '/admin/config/base',
		method: 'PUT',
		data: dataRequest,
		showLoading: true
	})
}
//删除参数配置
export function delBaseConfig(idList) {
	return request({
		url: '/admin/config/base/' + idList,
		method: 'DELETE',
		showLoading: true
	})
}
//禁用启用参数配置
export function disableBaseConfig(dataRequest) {
	return request({
		url: '/admin/config/base/disable/flag',
		method: 'PUT',
		data: dataRequest,
		showLoading: true
	})
}
